package com.lagou.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lagou.common.pojo.PayOrder;
import com.lagou.order.mapper.OrderMapper;
import com.lagou.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public PayOrder queryOrderById(Integer id) {
        return orderMapper.selectById(id);
    }

    @Override
    public Page<PayOrder> queryByPage(Page<PayOrder> page, QueryWrapper<PayOrder> queryWrapper) {
        return orderMapper.selectPage(page,queryWrapper);
    }
}
